package com.example.aerospacemanagementsystem.service.basicService.impl;

import com.example.aerospacemanagementsystem.entity.basic.Job;
import com.example.aerospacemanagementsystem.mapper.basicMapper.JobMapper;
import com.example.aerospacemanagementsystem.service.basicService.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 铁殷
* @description 针对表【job】的数据库操作Service实现
* @createDate 2023-10-20 14:12:20
*/
@Service
public class JobServiceImpl implements JobService{

    @Autowired
    private JobMapper jobMapper;

    @Override
    public int add(Job job) {
        return jobMapper.insert(job);
    }

    @Override
    public int delete(Job job) {
        return jobMapper.delete(job);
    }

    @Override
    public int update(Job job) {
        return jobMapper.update(job);
    }

    @Override
    public List<Job> getAllJob(Job job) {
        return jobMapper.getAllJob(job);
    }
}




